/* ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
   Module Name          : com.yaodian100.crm.cs.entity.MustInquire
   Module Description   :

   Date Created      : 2010/1/21
   Original Author   : andy.chuang
   Team              : yaodian100
   ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
   MODIFICATION HISTORY
   ------------------------------------------------------------------------------
   Date Modified       Modified by       Comments
   ------------------------------------------------------------------------------
   ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
package com.yaodian100.crm.cs.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

import com.yaodian100.core.common.entity.BaseEntity;
import com.yaodian100.core.common.entity.CommonEntity;

/**
 * @author andy.chuang
 *
 */
@Entity
@Table(name="CRM_CS_MI")
public class MustInquire extends CommonEntity{
    /**
     * 
     */
    private static final long serialVersionUID = -505022334824770941L;
    private Long id;
    private CommonQuestionType commonQuestionType;
    private String description;
    /**
     * @return the id
     */
    @Id
    @GeneratedValue(strategy = GenerationType.AUTO, generator = "seq_mustinquire")
    @SequenceGenerator(name = "seq_mustinquire", sequenceName = "SEQ_MUSTINQUIRE")
    public Long getId() {
        return id;
    }
    /**
     * @param id the id to set
     */
    public void setId(Long id) {
        this.id = id;
    }
    /**
     * @return the commonQuestionType
     */
    @ManyToOne
    public CommonQuestionType getCommonQuestionType() {
        return commonQuestionType;
    }
    /**
     * @param commonQuestionType the commonQuestionType to set
     */
    public void setCommonQuestionType(CommonQuestionType commonQuestionType) {
        this.commonQuestionType = commonQuestionType;
    }
    /**
     * @return the description
     */
    @Column(length=200)
    public String getDescription() {
        return description;
    }
    /**
     * @param description the description to set
     */
    public void setDescription(String description) {
        this.description = description;
    }
    
}
